/*
 * // +-------------------------------------------------------------------------------------------------
 * // |                 有你就好 [ 有节骨乃坚，无心品自端 ]     <http://encoding.wang>
 * // +-------------------------------------------------------------------------------------------------
 * // |                             独在异乡为异客         每逢佳节倍思亲
 * // +-------------------------------------------------------------------------------------------------
 * // |                 联系:   <707069100@qq.com>      <http://weibo.com/513778937>
 * // +-------------------------------------------------------------------------------------------------
 */

// -----------------------------------------------------------------------------------------------------
// +----------------------------------------------------------------------------------------------------
// |                   ErYang出品 属于小极品          共同学习    共同进步
// +----------------------------------------------------------------------------------------------------
// -----------------------------------------------------------------------------------------------------


package wang.encoding.mroot.plugin.ueditor.define;

import java.util.HashMap;
import java.util.Map;


/**
 * 头类型
 *
 * @author ErYang
 */
public class MimeType {

    /**
     * 类型
     */
    private static final Map<String, String> TYPES = new HashMap<>() {
        private static final long serialVersionUID = -8479209360356422797L;

        {
            put("image/gif", ".gif");
            put("image/jpeg", ".jpg");
            put("image/jpg", ".jpg");
            put("image/png", ".png");
            put("image/bmp", ".bmp");
        }
    };

    // -------------------------------------------------------------------------------------------------

    /**
     * 得到后缀
     *
     * @param mime String
     * @return String
     */
    public static String getSuffix(final String mime) {
        return MimeType.TYPES.get(mime);
    }

    // -------------------------------------------------------------------------------------------------

}

// -----------------------------------------------------------------------------------------------------

// End MimeType class

/* End of file MimeType.kt */
/* Location: ./src/main/kotlin/wang/encoding/mroot/plugin/ueditor/MimeType/ActionMap.kt */

// -----------------------------------------------------------------------------------------------------
// +----------------------------------------------------------------------------------------------------
// |                           ErYang出品 属于小极品  O(∩_∩)O~~   共同学习    共同进步
// +----------------------------------------------------------------------------------------------------
// -----------------------------------------------------------------------------------------------------
